VT-d: should not disable VT-d when find unknown DMAR structure type
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Mar 2010 10:01:05 +0000 (10:01 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Mar 2010 10:01:05 +0000 (10:01 +0000)
commit024ce79aea88be56dae38cf54e054e6d354bb585
tree9d82cc0b33e30e321dc419cb7432f679234822e3
parentf81bf6953cf77cdd623bea373026eb77dac4d40a
VT-d: should not disable VT-d when find unknown DMAR structure type

Now 4 DMAR structure types are supported (type value 0 ~ 3). Type
values > 3 are reserved for future use. Current implementation
disables VT-d when find unknown DMAR structure type, this may lead to
VT-d disabling on future platforms before supporting new types on
Xen. For forward compatibility, just skip unknown structures by
skipping the appropriate number of bytes indicated by the Length
field, and then VT-d still can be used.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.c